package com.allwees.bs.module.wms.service;

import com.allwees.bs.module.base.service.BoService;
import com.allwees.bs.module.wms.entity.WmsAllocateOrderSku;
import com.allwees.bs.module.wms.entity.WmsPickOrderSku;

import java.util.List;
import java.util.Set;

/**
 * wms 拣货单 sku
 * @author mouhn
 * @since 2020-01-08 13:56
 */
public interface WmsPickOrderSkuService extends BoService<WmsPickOrderSku> {

    /**
     * 创建
     * @param pickOrderUuid
     * @param allocateOrderSku
     * @return
     */
    boolean create(String pickOrderUuid, WmsAllocateOrderSku allocateOrderSku);

    /**
     * 发货
     * @param pickOrderSkuUuids
     * @return
     */
    List<WmsPickOrderSku> shipping(Set<String> pickOrderSkuUuids);

    boolean allShipped(String pickOrderUuid);

    void refund(String uuid);
}
